package com.dms.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dms.common.annotation.Excel;
import com.dms.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 巡检记录，巡检人员上传现场数据对象 sys_record
 * 
 * @author ruoyi
 * @date 2021-03-27
 */
public class SysRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录编号 */
    private Long id;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private Long plantId;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private Long userId;

    /** 温度 */
    @Excel(name = "温度")
    private String temperature;

    /** 压力 */
    @Excel(name = "压力")
    private String pressure;

    /** 设备状态 */
    @Excel(name = "设备状态")
    private String status;

    /** 现场上传图片路径 */
    private String imgPath;

    /** 记录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "记录时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date recordTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPlantId(Long plantId) 
    {
        this.plantId = plantId;
    }

    public Long getPlantId() 
    {
        return plantId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setTemperature(String temperature) 
    {
        this.temperature = temperature;
    }

    public String getTemperature() 
    {
        return temperature;
    }
    public void setPressure(String pressure) 
    {
        this.pressure = pressure;
    }

    public String getPressure() 
    {
        return pressure;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setRecordTime(Date recordTime) 
    {
        this.recordTime = recordTime;
    }

    public Date getRecordTime() 
    {
        return recordTime;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    @Override
    public String toString() {
        return "SysRecord{" +
                "id=" + id +
                ", plantId=" + plantId +
                ", userId=" + userId +
                ", temperature='" + temperature + '\'' +
                ", pressure='" + pressure + '\'' +
                ", status='" + status + '\'' +
                ", imgPath='" + imgPath + '\'' +
                ", recordTime=" + recordTime +
                '}';
    }
}
